package com.neusoft.service.impl;

import com.neusoft.domain.Business;
import com.neusoft.mapper.BusinessDao;
import com.neusoft.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {
    @Autowired
    BusinessDao businessDao;

    @Override
    public List<Business> listBusinessByOrderTypeId(Integer orderTypeId)  {

        List<Business> businessList = businessDao.listBusinessByOrderTypeId(orderTypeId);
        return businessList;
    }

    @Override
    public Business getBusinessById(Integer businessId)  {
        Business business = businessDao.getBusinessById(businessId);
        return business;
    }
}
